package com.shycloud.mido.organ.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 教师提成表
 *
 * @author fyp
 * @date 2019-03-15
 */
@Data
@TableName("org_teacher_royalty")
@EqualsAndHashCode(callSuper = true)
public class TeacherRoyaltyEntity extends Model<TeacherRoyaltyEntity> {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(value = "id", type = IdType.UUID)
	private String id;
	/**
	 * 机构id
	 */
	private Integer orgId;
	/**
	 * teacher关联id
	 */
	private String teacherId;
	/**
	 * 类型(1:1对1单驱;2:1对1双驱;3:1对多双驱;3:1对1个别课)
	 */
	private String type;
	/**
	 * 每课节提成
	 */
	private BigDecimal price;

}
